package com.finance.cooperate.feature.reader;

import com.finance.cooperate.feature.base.ReaderImpl;
import com.finance.cooperate.feature.core.feature.FeatureDefinition;
import com.finance.cooperate.feature.dto.AppInstallDetailDTO;

import java.util.Map;

/**
 * @ClassName AppInstallDetailReader
 * @Description TODO
 * @Author shenanxin
 * @Date 2023/8/23 17:32
 * @Modify ...
 */
public class AppInstallDetailReader extends ReaderImpl {
    @Override
    public Map<String, String> read(String userId) {


        AppInstallDetailDTO dto = appInstallDetailService.isFraudApp(userId);

        super.put(FeatureDefinition.f_app_install_detail_same_app_count, dto.getSameAppCount());

        super.putOriginal(FeatureDefinition.f_app_install_detail_same_uid, dto.getSameUid());
        super.putOriginal(FeatureDefinition.f_app_install_detail_same_device_id, dto.getSameDeviceId());
        super.putOriginal(FeatureDefinition.f_app_install_detail_same_last_submit_time, dto.getSameLastSubmitTime());
        super.putOriginal(FeatureDefinition.f_app_install_detail_same_curr_device_id, dto.getCurrDeviceId());


        return super.getResult();
    }
}
